class PhotoController < ApplicationController
  
  def index
    if params[:id] then
      @post = Post.find(params[:id])
    else
      @post = Post.find_last_post
    end
  end
  
end
